package com.test.jbpm.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.test.jbpm.dao.DeptDao;
import com.test.jbpm.domain.Dept;
import com.test.jbpm.service.DeptService;


@Service

public class DeptServiceImpl implements DeptService {

	private DeptDao deptDao;
	
	@Autowired
	public void setDeptDao(DeptDao deptDao) {
		this.deptDao = deptDao;
	}

	public List<Dept> findDeptList() {
		return deptDao.findDeptList();
	}

	public Dept findFirstLevelOfTree(Dept dept){
		return deptDao.findFirstLevelOfTree();
	}
}
